﻿<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:flex="http://www.springframework.org/schema/flex"
       xmlns:osgi="http://www.springframework.org/schema/osgi"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
          http://www.springframework.org/schema/flex http://www.springframework.org/schema/flex/spring-flex-1.0.xsd">

<#if remotingDestinationClassList ??>
   	<!-- ostensibly we could put these in the bean definitions in data-service.xml, but the beans get processed before the above flex:message-broker creates the _messageBroker -->
<#list remotingDestinationClassList as t><#assign n = uncapitalize(t.simpleName) >
	<flex:remoting-destination channels="main-amf, main-amf-secure" ref="${n}" />
</#list>
</#if>

</beans>